import instance from './index';
const preUrlPath = '';
const PersonalRegister = {
    p: ['post,/rest/api/user/personal/register'],
    r: params => {
        return instance.post(`${preUrlPath}/rest/api/user/personal/register`, params)
    }
};
const EnterpriseRegister = {
    p: ['post,/rest/api/user/enterprise/register'],
    r: params => {
        return instance.post(`${preUrlPath}/rest/api/user/enterprise/register`, params)
    }
};

const CheckUserName = {
    p: ['get,/rest/api/user/'],
    r: params => {
        return instance.get(`${preUrlPath}/rest/api/user/checkUserName/`+params.userName)
    }
};
const SaveEnterprise = {
    p: ['post,/rest/api/user/enterprise/save'],
    r: params => {
        return instance.post(`${preUrlPath}/rest/api/user/enterprise/save`,params)
    }
};
const GetEnterprise = {
    p: ['get,/rest/api/user/enterprise/'],
    r: params => {
        return instance.get(`${preUrlPath}/rest/api/user/enterprise/`+params)
    }
};


export {
    PersonalRegister,EnterpriseRegister,CheckUserName,SaveEnterprise,GetEnterprise
}
